package com.sc.nft.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import lombok.extern.slf4j.Slf4j;
import com.sc.nft.entity.DisassemblyHistoryLog;
import com.sc.nft.mapper.DisassemblyHistoryLogMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * (sc_disassembly_history_log)数据DAO
 *
 * @author Sun
 * @since 2022-11-21 15:35:27
 * @description 由 Mybatisplus Code Generator 创建
 */
@Slf4j
@Repository
public class DisassemblyHistoryLogDao extends ServiceImpl<DisassemblyHistoryLogMapper, DisassemblyHistoryLog> {

    public List<DisassemblyHistoryLog> findListByIsSettleAccounts(Boolean isSettleAccounts) {
        LambdaQueryWrapper<DisassemblyHistoryLog> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(DisassemblyHistoryLog::getIsSettleAccounts,isSettleAccounts);
        return list(wrapper);
    }
}